<template>
   <div>
    <button @click="addBtn">新增</button>
    <input type="text" v-model="searchVal">
    <button @click="searchBtn">搜索</button>
   </div>
</template>
<script>
    export default {
        props:["isStatus",'status','getData','currentPage'],
       data(){
           return {
               addStatus:true,
               searchVal:'',
               searchPage:1
           }
       } ,
       methods:{
           addBtn(){
             //  let ModalShow = this.addStatus,
            //    this.addStatus = !this.addStatus
            //    //console.log( this.addStatus)
             this.$emit('isStatus',this.addStatus)
           },
           searchBtn(){
               this.$emit('searchCh',this.searchVal)
              this.$emit('searchPC',this.searchPage)
               this.getData()
           }
       }
    }
</script>
<style scoped>
    button{
        margin: 10px 10px;
    }
</style>


